using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;

namespace Nsb.Classes
{
    [IgnoreNamespace]
    public static class TestInstance
    {
        public static object TheTest;
        public static void AddInstance(object cls)
        {
#if DEBUG
            if (TheTest != null)
            {
                
                Action<object> fn = (Action<object>) Script.Literal("Test.addInstance");
                Debug.Assert(fn != null, "Test.addInstance != null");
                if (fn != null)
                    fn(cls);
            }
#endif
        }

    }
}
